package com.itheima.leyou.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itheima.leyou.mapper.SpuDetailMapper;
import com.itheima.leyou.po.SpuDetail;
import com.itheima.leyou.service.SpuDetailService;
import com.leyou.item.dto.SpuDetailDTO;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SpuDetailServiceImpl extends ServiceImpl<SpuDetailMapper, SpuDetail> implements SpuDetailService {
    @Override
    public SpuDetailDTO queryDetailById(Long sid) {
        SpuDetail spuDetail = this.getById(sid);
        return new SpuDetailDTO(spuDetail);

    }
}
